using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ColorAdjustEffect : PostEffectBase
{
    /// <summary>
    /// 亮度
    /// </summary>
    [Range(0, 3)] public float brightness = 1.0f;
    /// <summary>
    /// 饱和度
    /// </summary>
    [Range(0, 3)] public float saturation = 1.0f;
    /// <summary>
    /// 对比度
    /// </summary>
    [Range(0, 3)] public float contrast = 1.0f;

    protected override void SetProperties()
    {
        base.SetProperties();
        MyMaterial.SetFloat("_Brightness", brightness);
        MyMaterial.SetFloat("_Saturation", saturation);
        MyMaterial.SetFloat("_Contrast", contrast);
    }
}